package ch.cryptobox.serivces;

import java.io.File;
import java.io.IOException;

import org.acplt.oncrpc.OncRpcException;

import ch.cryptobox.filehandles.FileHandleI;
import ch.cryptobox.nfsError.CreateFileException;
import ch.cryptobox.nfsError.FileNotFoundException;
import ch.cryptobox.nfsError.ReadWriteException;

public interface RemoteFileService {
	public FileHandleI getRootHandle();	
	public void addFile(final File file, final byte[] data) throws OncRpcException, IOException, CreateFileException, ReadWriteException,FileNotFoundException;
	public void addDirectory(final File file) throws OncRpcException, IOException, CreateFileException, ReadWriteException, FileNotFoundException;
}
